package com.uflower.order.service;

import com.uflower.order.vo.CartItemVo;
import com.uflower.order.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {

    CartItemVo addCartItem(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    void checkItem(Long skuId, Integer checked);

    void updateItemCount(Long skuId, Integer num);

    void deleteItem(Long skuId);

    CartItemVo getCartItem(Long skuId);

    List<CartItemVo> getCheckedItems(Long id);

    CartVo getCart();
}
